/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 管理员分页查询用户购买记录 POST /sco/userGoods/adminPageData */
export async function scoUserGoodsAdminPageDataUsingPost({
  body,
  options,
}: {
  body: API.ScoUserGoodsBoScoUserGoodsAdminPageData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RPageDataVoScoUserGoodsVo>(
    '/sco/userGoods/adminPageData',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 管理员修改用户签收 POST /sco/userGoods/updateGetFlag */
export async function scoUserGoodsUpdateGetFlagUsingPost({
  body,
  options,
}: {
  body: API.ScoUserGoodsBoScoUserGoodsUpdateGetFlag;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/sco/userGoods/updateGetFlag', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
